<template>
  <el-container id="layout_id">
    <el-aside width="200px">
        小U商城
        <Left></Left>
    </el-aside>
    <el-container>
      <el-header>
          <Top></Top>
      </el-header>
      <el-main>
          <router-view></router-view>
      </el-main>
    </el-container>
  </el-container>
</template>

<script>
import Left from '../components/Left.vue'
import Top from '../components/Top.vue'
export default {
    components:{
        Left,
        Top
    }
};
</script>

<style>
.el-header{
  background-color: #fff;
  color: #333;
  text-align: right;
  line-height: 60px;
}

.el-aside {
  background-color: #FF5D3E;
  color: #FFF;
  text-align: center;
  line-height: 60px;
  font-size: 30px;
  font-weight: bold;
  letter-spacing: 5px;
  height: 100%;
  min-height: 100vh;
}

.el-main {
  background-color: #F2F2F2;
  color: #333;
  text-align: center;
  line-height: 60px;
}

body > .el-container {
  margin-bottom: 40px;
}

.el-container:nth-child(5) .el-aside,
.el-container:nth-child(6) .el-aside {
  line-height: 260px;
}

.el-container:nth-child(7) .el-aside {
  line-height: 320px;
}
</style>